#import types

class toClass:
	def __init__(self, dictionary):
		for k, v in dictionary.items():
			#if type(v) is types.ListType:
			if len(k.rsplit('[]')) > 1:
				setattr(self,k.rsplit('[]')[0],v)
			else:
				setattr(self, k, v)